/**
 * Static object/namespace for sending general-purpose stateless commands to 
 * the client browser.
 * This object/namespace should not be used externally.
 */
EchoBrowserCommand = function() { };

/**
 * Static object/namespace for browser command MessageProcessor 
 * implementation.
 */
EchoBrowserCommand.MessageProcessor = function() { };

/**
 * MessageProcessor process() implementation 
 * (invoked by ServerMessage processor).
 *
 * @param messagePartElement the <code>message-part</code> element to process.
 */
EchoBrowserCommand.MessageProcessor.process = function(messagePartElement) {
    for (var i = 0; i < messagePartElement.childNodes.length; ++i) {
        if (messagePartElement.childNodes[i].nodeType == 1) {
            var uri = messagePartElement.childNodes[i].getAttribute("uri");
		    self.parent.location = uri;
		    break;
        }
    }
};